<!DOCTYPE html>
<!-- 
	https://blog.csdn.net/qq_40575302/article/details/119296671
	
	
	JQuery在线文档：https://jquery.cuishifeng.cn/index.html
 -->
<html>
	<head>
		<meta charset="utf-8">
		<title>操作dom</title>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	</head>
	
	<body>
		

		<ul>
			<li class="li0">JavaScript</li>
			<li name="li1">Python</li>
		</ul>
		
		<p style="display: none">Hello</p>
		
		<script>
		    $("ul li[name=li1]").text("new li1");//修改值
		    // 设置css
		    $("ul li[class=li0]").css({
		            "color": "#ff0011",
		            "background": "blue"
		        })
		    $('ul li[name=li1]').hide();//隐藏
		    $('ul li[name=li1]').show();//显示
			
			//用缓慢的动画将隐藏的段落显示出来，历时600毫秒。https://jquery.cuishifeng.cn/show.html
			$("p").show("slow");
			
		</script>
		
	</body>
</html>